
#include "Caretake.h"
#include "GameRole.h"

using namespace npMemento;


void doMemento()
{
    shared_ptr<Caretake> caretake = make_shared<Caretake>();
    shared_ptr<GameRole> role = make_shared<GameRole>();

    role->show();
    caretake->save(role->saveAsMemo());
    role->attack();
    role->show();
    role->loadFromMemo(caretake->load());
    role->show();
}